/**
 * 
 */
package com.qjs.smterp.utils;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 * @author tudd
 *
 */
public class NumberUtils {
	
	public static String generateInStockCode(String prefix){
		Date today = Calendar.getInstance().getTime();        
		DateFormat df = new SimpleDateFormat("ddMMyyyyHHmmssSSS");
		String reportDate = df.format(today);
		return prefix+reportDate;
	}
	public static void main(String[] args) {
		System.out.println(generateInStockCode("INS"));
	}

}
